package com.example.demo.buessiness.department.interfaces;


import com.example.demo.buessiness.user.model.dto.UserResponse;
import com.example.demo.commons.jpa.PageableService;
import msa.common.model.PojoCover;
import msa.common.model.ResultModel;

import com.example.demo.buessiness.department.model.dto.DepartmentRequest;
import com.example.demo.buessiness.department.model.dto.DepartmentResponse;
import org.springframework.stereotype.Component;

import java.util.List;


public interface IDepartmentService extends PageableService,PojoCover<DepartmentRequest,DepartmentResponse> {

    ResultModel addDepartment(DepartmentRequest clientRequest);

    ResultModel updateDepartment(DepartmentRequest clientRequest);

    ResultModel deleteDepartment(Long id);

    ResultModel findDepartmentByID(Long id);

    List<DepartmentResponse>findAll();

    ResultModel findDepartmentByName(String department);

    //查询用户名
    List<DepartmentResponse> findByDepartmentname(String username);

}

